import React from 'react';
import { LinearProgress } from 'react-native-elements';
import { Button } from 'react-native';

export default class Index extends React.Component {
    state = {
        isLoading:false
    }
    render() {
        let {isLoading} = this.state;
        return (
            <>
            { isLoading && <LinearProgress color="primary"  />}
            <Button onPress={ ()=> this.setState({ isLoading:!isLoading })}  title="变更加载状态"></Button>

                


            </>
        )
    }
}